//
//  ImageFullView.m
//  ChinaA
//
//  Created by Evan on 2018/11/22.
//  Copyright © 2018 Evan. All rights reserved.
//

#import "ImageFullView.h"
#import <Masonry.h>

@implementation ImageFullView

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.hidden = YES;
        self.backgroundColor = [UIColor colorWithRed:200/255 green:200/255 blue:200/255 alpha:0.5];
    }
    return self;
}

-(UIImageView*)imgView{
    if(!_imgView){
        _imgView = [[UIImageView alloc]init];
        [self addSubview:_imgView];
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.mas_left).offset(10);
            make.top.mas_equalTo(self.mas_top).offset(10);
            make.right.mas_equalTo(self.mas_right).offset(10);
            make.bottom.mas_equalTo(self.mas_bottom).offset(10);
        }];
    }
    return  _imgView;
}

@end
